package com.luckyframe.project.jmeter.jmeterTaskScheduling.domain;

import com.luckyframe.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * jmeter测试计划调度表 jmeter_task_scheduling
 * 
 * @author lancelot
 * @date 2020-10-14
 */
public class JmeterTaskScheduling extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 调度ID */
	private Long schedulingId;
	/** 调度名称 */
	private String schedulingName;
	/** 调度任务ID */
	private Long jobId;
	/** 项目ID */
	private Long projectId;
	/** 测试计划ID */
	private Long planId;
	/** 发送邮件通知时的具体逻辑, -1-不通知 0-全部，1-成功，2-失败 */
	private Integer emailSendCondition;
	/** 邮件通知地址 */
	private String emailAddress;
	/** jenkins构建链接 */
	private String buildingLink;
	/** 远程执行Shell脚本 */
	private String remoteShell;
	/** 客户端执行线程数 */
	private Integer exThreadCount;
	/** 任务超时时间(分钟) */
	private Integer taskTimeout;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 修改时间 */
	private Date updateTime;
	/** 备注 */
	private String remark;

	public void setSchedulingId(Long schedulingId) 
	{
		this.schedulingId = schedulingId;
	}

	public Long getSchedulingId() 
	{
		return schedulingId;
	}
	public void setSchedulingName(String schedulingName) 
	{
		this.schedulingName = schedulingName;
	}

	public String getSchedulingName() 
	{
		return schedulingName;
	}
	public void setJobId(Long jobId) 
	{
		this.jobId = jobId;
	}

	public Long getJobId() 
	{
		return jobId;
	}
	public void setProjectId(Long projectId) 
	{
		this.projectId = projectId;
	}

	public Long getProjectId() 
	{
		return projectId;
	}
	public void setPlanId(Long planId) 
	{
		this.planId = planId;
	}

	public Long getPlanId() 
	{
		return planId;
	}
	public void setEmailSendCondition(Integer emailSendCondition) 
	{
		this.emailSendCondition = emailSendCondition;
	}

	public Integer getEmailSendCondition() 
	{
		return emailSendCondition;
	}
	public void setEmailAddress(String emailAddress) 
	{
		this.emailAddress = emailAddress;
	}

	public String getEmailAddress() 
	{
		return emailAddress;
	}
	public void setBuildingLink(String buildingLink) 
	{
		this.buildingLink = buildingLink;
	}

	public String getBuildingLink() 
	{
		return buildingLink;
	}
	public void setRemoteShell(String remoteShell) 
	{
		this.remoteShell = remoteShell;
	}

	public String getRemoteShell() 
	{
		return remoteShell;
	}
	public void setExThreadCount(Integer exThreadCount) 
	{
		this.exThreadCount = exThreadCount;
	}

	public Integer getExThreadCount() 
	{
		return exThreadCount;
	}
	public void setTaskTimeout(Integer taskTimeout) 
	{
		this.taskTimeout = taskTimeout;
	}

	public Integer getTaskTimeout() 
	{
		return taskTimeout;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("schedulingId", getSchedulingId())
            .append("schedulingName", getSchedulingName())
            .append("jobId", getJobId())
            .append("projectId", getProjectId())
            .append("planId", getPlanId())
            .append("emailSendCondition", getEmailSendCondition())
            .append("emailAddress", getEmailAddress())
            .append("buildingLink", getBuildingLink())
            .append("remoteShell", getRemoteShell())
            .append("exThreadCount", getExThreadCount())
            .append("taskTimeout", getTaskTimeout())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
